package com.sxfq.loansupermarket.backsystem.modular.theTest.service.impl;

import com.sxfq.loansupermarket.backsystem.modular.base.SqlMapper;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TheTestInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.service.IInTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class InTestServiceImpl implements IInTestService {

    @Autowired
    private SqlMapper sqlMapper;

    public TheTestInfo getTheTestInfo(String theTestId) {
        String sql = "SELECT * from the_test_info where id= '" + theTestId + "'";
        TheTestInfo theTestInfo = sqlMapper.selectOne(sql, TheTestInfo.class);
        return theTestInfo;
    }
}
